const http2 = require("http2")
// 开启http2服务
http2.createServer().on('request', (request, response) => {
    console.log("http2 request_test")
    let d = []
    request.addListener("data", chunk => {
        d.push(chunk)
    })
    request.addListener("end", () => {
        console.log(d.toString())
    })
    response.end('hello http2 server')
}).listen(3000, '0.0.0.0');